package org.tabularium.logging;

import java.util.logging.*;
import java.lang.Integer;

/**
 * <p>Yet Another Simple Log Formatter.</p>
 * <p> </p>
 * <p>@author Fabio Gasparetti</p>
 * <p>@version 1.0</p>
 */

public class YASLogFormatter extends Formatter {
  protected SimpleFormatter sf = new SimpleFormatter();

  public YASLogFormatter() {
  }

  public String format(LogRecord record) {
      // remove newlines
      String s = sf.format(record).replaceAll(System.getProperty("line.separator","\n")," ");
//      s = s.concat(Integer.toString(record.getThreadID()));
      return s.concat(System.getProperty("line.separator","\n"));
  }

}